# coding:utf-8

class person():
    def __init__(self,name,gender,birth,dic):
        self.name=name
        self.gender=gender
        self.birth=birth
        for k,w in dic.items():
            setattr(self,k,w)
    def sayhi(self):
        print('my name is',self.name)
#xiaoming = person('Xiao Ming', 'Male', '1991-1-1',job='student',tel='18089355',stdid='15010')
dic = {
    'job':'doctor',
    'tel':'1329'
}
xiaohong = person('Xiao Hong', 'Female', '1992-2-2',dic)

xiaohong.name = 'xiaoyan'
# print(xiaoming.name)
# print (xiaohong.birth)
# print (xiaoming.job)
# print (xiaoming.tel)
# print (xiaoming.stdid)
print('==================')
print (xiaohong.sayhi())
print(xiaohong.job)